import { useEffect, useState } from "react";
import { ApiHome } from "@/utils/api";
import YtTabbar from "@/components/YtTAbBar";
import { Outlet, useLocation, useNavigate } from "react-router-dom";

function App() {
  // const location = useLocation();
  // const navgate = useNavigate();
  // useEffect(() => {
  //   if (location.pathname == "/") {
  //     navgate("/home");
  //   }
  // }, [location.pathname]);
  return (
    <div className={["App", "yt_tabbar_comtent"].join(" ")}>
      <YtTabbar />
      <Outlet />
    </div>
  );
}

export default App;
